<%@ page import="blogito.Entry" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'entry.label', default: 'Entry')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
		<g:if test="${session.user}">
			<div class="nav">
				<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
				<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
				<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
			</div>
		</g:if>

        <div class="body">
			  <g:render template="entry" bean="${entryInstance}" var="entryInstance" />
			  <g:if test="${session.user}">
				  <div class="buttons">
					<!-- snip -->
				  </div>
			  </g:if>
			</div>
        </div>
    </body>
</html>
